/**
 * shop模块的接口
 */
import type { User } from './auth_interface';
import type { CarModelConfig } from './mes_interface';
import type { FileResource } from './sys_interface';

// 汽车产品
export interface CarProduct {
  carModelConfig?: CarModelConfig;
  carModelConfigName?: string;
  carModelConfigId?: string;
  id?: string; // 主键
  name?: string;
  onSale?: boolean;
  description?: string;
  content?: string;
  originalPrice?: number;
  price?: number;
  repository?: number;
  coverImage?: FileResource;
  orderNum?: number;
  creator?: User;
  editor?: User;
  coverImageId?: string; //资源id
}
// 客户
export interface Customer {
  id?: string; // 主键
  name?: string;
}
// 客户
export interface ShopCarOrder {
  id?: string; // 主键
  customer?: Customer;
  carProduct?: CarProduct;
  carProductId?: string;
  customerId?: string;
}
